<extend name="template:common" />
<block name="css">
    <css href="__CSS__/page.css"/>
</block>
<block name="main">
<h1>
    <span class="action-span"><a href="{:U('add')}">角色添加</a></span>
    <span class="action-span1"><a href="{:U()}">角色管理</a></span>
    <span id="search_id" class="action-span1"> - {$meta_title} </span>
    <div style="clear:both"></div>
</h1>
<form method="post" action="" name="listForm">
    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>角色名</th>
                <th>角色描述</th>
                <th>排序</th>
                <th>是否显示</th>
                <th>操作</th>
            </tr>
            <foreach name="rows" item="row">
                <tr>
                    <td class="first-cell">{$row.name}</td>
                    <td align="center">{$row.intro}</td>
                    <td align="center">{$row.sort}</td>
                    <td align="center"><img src="__IMG__/{$row['status']}.gif" ></td>
                    <td>
                        <a href="{:U('edit',array('id'=>$row['id']))}"><img title="编辑" src="__IMG__/icon_edit.gif" width="16" height="16" border="0" /></a>
                        <a href="{:U('del',array('id'=>$row['id']))}"><img title="删除" src="__IMG__/icon_trash.gif" width="16" height="16" border="0" /></a>
                    </td>
                </tr>
            </foreach>
            <tr>
                <td align="right" nowrap="true" colspan="6">
                    <div class="page">
                        {$page_html}
                    </div>
                </td>
            </tr>
        </table>
    </div>
</form>
</block>
</body>
</html>